﻿<!DOCTYPE HTML>
<meta content="no-siteapp" http-equiv="Cache-Control">
<link media="handheld" rel="alternate">
<html xmlns:th="http://www.thymeleaf.org">
<!-- end 云适配 -->
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>我的简历-拉勾网-最专业的互联网招聘平台</title>
<meta content="23635710066417756375" property="qc:admins">
<meta name="description" content="拉勾网是3W旗下的互联网领域垂直招聘网站,互联网职业机会尽在拉勾网">
<meta name="keywords"
      content="拉勾,拉勾网,拉勾招聘,拉钩, 拉钩网 ,互联网招聘,拉勾互联网招聘, 移动互联网招聘, 垂直互联网招聘, 微信招聘, 微博招聘, 拉勾官网, 拉勾百科,跳槽, 高薪职位, 互联网圈子, IT招聘, 职场招聘, 猎头招聘,O2O招聘, LBS招聘, 社交招聘, 校园招聘, 校招,社会招聘,社招">
<meta content="QIQ6KC1oZ6" name="baidu-site-verification">
<link href="h/images/favicon.ico" rel="Shortcut Icon">
<link href="/css/style.css" type="text/css" rel="stylesheet">
<link href="/css/external.min.css" type="text/css" rel="stylesheet">
<link href="/css/popup.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="/js/jquery.1.10.1.min.js"></script>
<script src="/js/jquery.lib.min.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/ajaxfileupload.js"></script>
<script src="/js/additional-methods.js" type="text/javascript"></script>
<!--[if lte IE 8]>
<script type="text/javascript" src="/js/excanvas.js"></script>
<![endif]-->
<script src="/js/ajaxCross.json" charset="UTF-8"></script>
</head>
<body>
<div id="body">


    <div th:insert="~{header :: #header}"></div>
    <div id="container">

        <div class="clearfix">
            <div class="content_l">
                <span style="display: none!important;" id="current_email" th:text="${resume.id}"></span>
                <div class="fl" id="resume_name">
                    <div th:if="${resume.resumeName} == null" class="nameShow fl">
                        <h1 title="用户的简历" th:text="${session.current_user.email} + 的简历"></h1>
                        <span class="rename">重命名</span> | <a target="_blank" href="/page/resumeOverView.html">预览</a>
                    </div>

                    <div th:if="${resume.userName} != null" class="nameShow fl">

                        <h1 th:text="${resume.resumeName} + 的简历"></h1>
                        <span class="rename">重命名</span> | <a target="_blank" href="/page/resumeOverView.html">预览</a>
                    </div>


                    <form class="fl dn" id="resumeNameForm" onsubmit="return false">

                        <input type="text" value="" name="resumeName" id="newResumeName" class="nameEdit c9">的简历
                        <input type="submit" value="保存" onclick="updateName()"> |
                        <a target="_blank" href="/page/resumeOverView.html">预览</a>
                        <span for="newResumeName" id="errorMsg" style="display: none;" generated="true" class="error">请输入简历名称</span>
                    </form>
                </div><!--end #resume_name-->
                <div class="fr c5" id="lastChangedTime">最后一次更新：<span
                        th:text="${#dates.format(session.current_user.updateTime,'yyyy-MM-dd HH:mm')}"> </span></div>
                <!--end #lastChangedTime-->
                <div id="resumeScore">
                    <div class="score fl">
                        <canvas height="120" width="120" id="doughnutChartCanvas"
                                style="width: 120px; height: 120px;"></canvas>
                        <div style="" class="scoreVal"><span>100</span>分</div>
                    </div>

                    <div class="which fl">
                        <div>工作经历最能体现自己的工作能力，且完善后才可投递简历哦！</div>
                        <span rel="workExperience"><a>马上去完善</a></span>
                    </div>
                </div><!--end #resumeScore-->

                <div class="profile_box" id="basicInfo">
                    <h2>基本信息</h2>
                    <span class="c_edit"></span>
                    <div th:if="${resume.resumeName !=null && resume.userGender != null}" class="basicShow">
                        <!--|     | ${resume.email}-->

                        <span th:text="${resume.userName} + '  |  ' + ${resume.userGender} + '  |  ' + ${resume.userPhone} + '  |  ' + ${resume.eduBack} + '  |  '+ ${resume.projectExpe} + '  |  '"></span>
                        <br>
                        <span th:text="${resume.email} + '  |  ' + ${resume.nowStatus}"></span>
                        <div class="m_portrait">
                            <div></div>
                            <img width="120" height="120" alt="默认头像" th:src="'/images/upload/' + ${resume.headImg}">
                        </div>
                    </div><!--end .basicShow-->

                    <div th:if="${resume.resumeName ==null || resume.userGender == null || resume.eduBack == null || resume.projectExpe == null || resume.userPhone ==null }"
                         style=" color: #019875;line-height: 26px;font-size: 26px;width: 190px;margin: 0px auto;">
                        请完善基本信息
                    </div>

                    <div class="basicEdit dn">
                        <form id="profileForm" enctype="multipart/form-data" onsubmit=" return false;">
                            <table>
                                <tbody>
                                <tr>
                                    <td valign="top">
                                        <span class="redstar">*</span>
                                    </td>
                                    <td>
                                        <input type="text" placeholder="姓名" value="姓名" name="name" id="name">
                                    </td>
                                    <td valign="top"></td>
                                    <td>
                                        <ul class="profile_radio clearfix reset" id="gender">
                                            <li class="current">
                                                男<em></em>
                                                <input type="radio" checked="checked" name="gender" value="男">
                                            </li>
                                            <li>
                                                女<em></em>
                                                <input type="radio" name="gender" value="女">
                                            </li>
                                        </ul>
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        <span class="redstar">*</span>
                                    </td>
                                    <td>
                                        <input type="hidden" id="topDegree" value="大专" name="topDegree">
                                        <input type="button" value="大专" id="select_topDegree"
                                               class="profile_select_190 profile_select_normal">
                                        <div class="boxUpDown boxUpDown_190 dn" id="box_topDegree"
                                             style="display: none;">
                                            <ul>
                                                <li>大专</li>
                                                <li>本科</li>
                                                <li>硕士</li>
                                                <li>博士</li>
                                                <li>其他</li>
                                            </ul>
                                        </div>
                                    </td>
                                    <td valign="top">
                                        <span class="redstar">*</span>
                                    </td>
                                    <td>
                                        <input type="hidden" id="workyear" value="" name="workyear">
                                        <input type="button" value="" id="select_workyear"
                                               class="profile_select_190 profile_select_normal">
                                        <div class="boxUpDown boxUpDown_190 dn" id="box_workyear"
                                             style="display: none;">
                                            <ul>
                                                <li>应届毕业生</li>
                                                <li>1年</li>
                                                <li>2年</li>
                                                <li>3年</li>
                                                <li>4年</li>
                                                <li>5年</li>
                                                <li>6年</li>
                                                <li>7年</li>
                                                <li>8年</li>
                                                <li>9年</li>
                                                <li>10年</li>
                                                <li>10年以上</li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        <span class="redstar">*</span>
                                    </td>
                                    <td colspan="3">
                                        <input type="text" placeholder="手机号码" value="18644444444" name="tel" id="tel">
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        <span class="redstar">*</span>
                                    </td>
                                    <td colspan="3">
                                        <input type="text" placeholder="接收面试通知的邮箱" value="jason@qq.com" name="email"
                                               id="email">
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top"></td>
                                    <td colspan="3">
                                        <input type="hidden" id="currentState" value="" name="currentState">
                                        <input type="button" value="目前状态" id="select_currentState"
                                               class="profile_select_410 profile_select_normal">
                                        <div class="boxUpDown boxUpDown_410 dn" id="box_currentState"
                                             style="display: none;">
                                            <ul>
                                                <li>我目前已离职，可快速到岗</li>
                                                <li>我目前正在职，正考虑换个新环境</li>
                                                <li>我暂时不想找工作</li>
                                                <li>我是应届毕业生</li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td colspan="3">
                                        <input type="submit" value="保 存" onclick="updateBaseInfo()"
                                               class="btn_profile_save">
                                        <a class="btn_profile_cancel" href="javascript:;">取 消</a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </form><!--end #profileForm-->
                        <div class="new_portrait">
                            <div class="portrait_upload" id="portraitNo">
                                <span>上传自己的头像</span>
                            </div>
                            <div class="portraitShow dn" id="portraitShow">
                                <img width="120" height="120" id="headImage" th:src="'/images/upload/' + ${resume.headImg}">
                                <span>更换头像</span>
                            </div>
                            <input type="file" value="" title="支持jpg、jpeg、gif、png格式，文件小于5M"
                                   onchange="img_check(this,'/resume/uploadImage.html');"
                                   name="headPic" id="headPic" class="myfiles"  >
                            <!-- <input type="hidden" id="headPicHidden" /> -->

                            <em>
                                尺寸：120*120px <br>
                                大小：小于5M
                            </em>
                            <span style="display:none;" id="headPic_error" class="error"></span>
                        </div><!--end .new_portrait-->
                    </div><!--end .basicEdit-->
                    <input type="hidden" id="nameVal" th:value="${resume.userName}">
                    <input type="hidden" id="genderVal" th:value="${resume.userGender}">
                    <input type="hidden" id="topDegreeVal" th:value="${resume.eduBack}">
                    <input type="hidden" id="workyearVal" th:value="${resume.projectExpe}">
                    <input type="hidden" id="currentStateVal" th:value="${resume.nowStatus}">
                    <input type="hidden" id="emailVal" th:value="${resume.email}">
                    <input type="hidden" id="telVal" th:value="${resume.userPhone}">
                    <!--<input type="hidden" id="pageType" th:value="${resume.userGender}" >-->
                </div><!--end #basicInfo-->

                <!---------------------------------------------------------------------------------------期望工作----------------------------------------------------------------->
                <div th:if="${hopeJob == null}" class="profile_box" id="expectJob">
                    <h2>期望工作</h2>

                    <span class="c_edit"></span>
                    <div class="expectAdd pAdd">
                        填写准确的期望工作能大大提高求职成功率哦…<br>
                        快来添加期望工作吧！
                        <span>添加期望工作</span>
                    </div><!--end .expectAdd-->

                    <div class="expectEdit dn">
                        <form id="expectForm" onsubmit="return false;">
                            <table>
                                <tbody>
                                <tr>
                                    <td>
                                        <input type="hidden" id="expectCity" value="" name="expectCity">
                                        <input type="button" value="期望城市，如：北京" id="select_expectCity"
                                               class="profile_select_287 profile_select_normal">
                                        <div class="boxUpDown boxUpDown_596 dn" id="box_expectCity"
                                             style="display: none;">
                                            <dl>
                                                <dt>热门城市</dt>
                                                <dd>
                                                    <span>北京</span>
                                                    <span>上海</span>
                                                    <span>广州</span>
                                                    <span>深圳</span>
                                                    <span>成都</span>
                                                    <span>杭州</span>
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt>ABCDEF</dt>
                                                <dd>
                                                    <span>北京</span>
                                                    <span>长春</span>
                                                    <span>成都</span>
                                                    <span>重庆</span>
                                                    <span>长沙</span>
                                                    <span>常州</span>
                                                    <span>东莞</span>
                                                    <span>大连</span>
                                                    <span>佛山</span>
                                                    <span>福州</span>
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt>GHIJ</dt>
                                                <dd>
                                                    <span>贵阳</span>
                                                    <span>广州</span>
                                                    <span>哈尔滨</span>
                                                    <span>合肥</span>
                                                    <span>海口</span>
                                                    <span>杭州</span>
                                                    <span>惠州</span>
                                                    <span>金华</span>
                                                    <span>济南</span>
                                                    <span>嘉兴</span>
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt>KLMN</dt>
                                                <dd>
                                                    <span>昆明</span>
                                                    <span>廊坊</span>
                                                    <span>宁波</span>
                                                    <span>南昌</span>
                                                    <span>南京</span>
                                                    <span>南宁</span>
                                                    <span>南通</span>
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt>OPQR</dt>
                                                <dd>
                                                    <span>青岛</span>
                                                    <span>泉州</span>
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt>STUV</dt>
                                                <dd>
                                                    <span>上海</span>
                                                    <span>石家庄</span>
                                                    <span>绍兴</span>
                                                    <span>沈阳</span>
                                                    <span>深圳</span>
                                                    <span>苏州</span>
                                                    <span>天津</span>
                                                    <span>太原</span>
                                                    <span>台州</span>
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt>WXYZ</dt>
                                                <dd>
                                                    <span>武汉</span>
                                                    <span>无锡</span>
                                                    <span>温州</span>
                                                    <span>西安</span>
                                                    <span>厦门</span>
                                                    <span>烟台</span>
                                                    <span>珠海</span>
                                                    <span>中山</span>
                                                    <span>郑州</span>
                                                </dd>
                                            </dl>
                                        </div>
                                    </td>
                                    <td>
                                        <ul class="profile_radio clearfix reset" id="gongzuoxingzhi">
                                            <li class="current">
                                                全职<em></em>
                                                <input type="radio" checked="" name="type" value="全职">
                                            </li>
                                            <li>
                                                兼职<em></em>
                                                <input type="radio" name="type" value="兼职">
                                            </li>
                                            <li>
                                                实习<em></em>
                                                <input type="radio" name="type" value="实习">
                                            </li>
                                        </ul>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" placeholder="期望职位，如：产品经理" value="" name="expectPosition"
                                               id="expectPosition">
                                    </td>
                                    <td>
                                        <input type="hidden" id="expectSalary" value="" name="expectSalary">
                                        <input type="button" value="期望月薪" id="select_expectSalary"
                                               class="profile_select_287 profile_select_normal">
                                        <div class="boxUpDown boxUpDown_287 dn" id="box_expectSalary"
                                             style="display: none;">
                                            <ul>
                                                <li>2k以下</li>
                                                <li>2k-5k</li>
                                                <li>5k-10k</li>
                                                <li>10k-15k</li>
                                                <li>15k-25k</li>
                                                <li>25k-50k</li>
                                                <li>50k以上</li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <input type="submit" value="保 存" onclick="addHopeJob();"
                                               class="btn_profile_save">
                                        <a class="btn_profile_cancel" href="javascript:;">取 消</a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </form><!--end #expectForm-->
                    </div><!--end .expectEdit-->
                </div><!--end #expectJob-->


                <div th:if="${hopeJob != null}" class="profile_box" id="expectJob">
                    <h2>期望工作</h2>

                    <span class="c_edit"></span>
                    <div class="basicShow" style="margin-left: 20px;">
                        <span th:text="'期望城市：'+ ${hopeJob.hopeCity} + '  |  '"></span><span
                            th:text="'工作性质：' + ${hopeJob.natureForJob} + '  |  '"></span>

                        <span th:text="'期望职位：' + ${hopeJob.positionDesired} + '  |   '"></span> <span
                            th:text="'期望月薪：' + ${hopeJob.monthSalary}"></span>

                    </div><!--end .experienceAdd-->

                    <div class="expectEdit dn">
                        <form id="expectForm" onsubmit="return false;">
                            <table>
                                <tbody>
                                <tr>
                                    <td>
                                        <input type="hidden" id="expectCity" value="" name="expectCity">
                                        <input type="button" value="期望城市，如：北京" id="select_expectCity"
                                               class="profile_select_287 profile_select_normal">
                                        <div class="boxUpDown boxUpDown_596 dn" id="box_expectCity"
                                             style="display: none;">
                                            <dl>
                                                <dt>热门城市</dt>
                                                <dd>
                                                    <span>北京</span>
                                                    <span>上海</span>
                                                    <span>广州</span>
                                                    <span>深圳</span>
                                                    <span>成都</span>
                                                    <span>杭州</span>
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt>ABCDEF</dt>
                                                <dd>
                                                    <span>北京</span>
                                                    <span>长春</span>
                                                    <span>成都</span>
                                                    <span>重庆</span>
                                                    <span>长沙</span>
                                                    <span>常州</span>
                                                    <span>东莞</span>
                                                    <span>大连</span>
                                                    <span>佛山</span>
                                                    <span>福州</span>
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt>GHIJ</dt>
                                                <dd>
                                                    <span>贵阳</span>
                                                    <span>广州</span>
                                                    <span>哈尔滨</span>
                                                    <span>合肥</span>
                                                    <span>海口</span>
                                                    <span>杭州</span>
                                                    <span>惠州</span>
                                                    <span>金华</span>
                                                    <span>济南</span>
                                                    <span>嘉兴</span>
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt>KLMN</dt>
                                                <dd>
                                                    <span>昆明</span>
                                                    <span>廊坊</span>
                                                    <span>宁波</span>
                                                    <span>南昌</span>
                                                    <span>南京</span>
                                                    <span>南宁</span>
                                                    <span>南通</span>
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt>OPQR</dt>
                                                <dd>
                                                    <span>青岛</span>
                                                    <span>泉州</span>
                                                </dd>
                                            </dl>
                                            <dl>
                                                <dt>STUV</dt>
                                                <dd>
                                                    <span>上海</span>
                                                    <span>石家庄</span>
                                                    <span>绍兴</span>
                                                    <span>沈阳</span>
                                                    <span>深圳</span>
                                                    <span>苏州</span>
                                                    <span>天津</span>
                                                    <span>太原</span>
                                                    <span>台州</span>
                                                </dd>
                                            </dl>

                                            <dl>
                                                <dt>WXYZ</dt>
                                                <dd>
                                                    <span>武汉</span>
                                                    <span>无锡</span>
                                                    <span>温州</span>
                                                    <span>西安</span>
                                                    <span>厦门</span>
                                                    <span>烟台</span>
                                                    <span>珠海</span>
                                                    <span>中山</span>
                                                    <span>郑州</span>
                                                </dd>
                                            </dl>
                                        </div>
                                    </td>
                                    <td>
                                        <ul class="profile_radio clearfix reset" id="gongzuoxingzhi">
                                            <li class="current">
                                                全职<em></em>
                                                <input type="radio" checked="" name="type" value="全职">
                                            </li>
                                            <li>
                                                兼职<em></em>
                                                <input type="radio" name="type" value="兼职">
                                            </li>
                                            <li>
                                                实习<em></em>
                                                <input type="radio" name="type" value="实习">
                                            </li>
                                        </ul>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" placeholder="期望职位，如：产品经理" value="" name="expectPosition"
                                               id="expectPosition">
                                    </td>
                                    <td>
                                        <input type="hidden" id="expectSalary" value="" name="expectSalary">
                                        <input type="button" value="期望月薪" id="select_expectSalary"
                                               class="profile_select_287 profile_select_normal">
                                        <div class="boxUpDown boxUpDown_287 dn" id="box_expectSalary"
                                             style="display: none;">
                                            <ul>
                                                <li>2k以下</li>
                                                <li>2k-5k</li>
                                                <li>5k-10k</li>
                                                <li>10k-15k</li>
                                                <li>15k-25k</li>
                                                <li>25k-50k</li>
                                                <li>50k以上</li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <input type="submit" value="保 存" onclick="addHopeJob();"
                                               class="btn_profile_save">
                                        <a class="btn_profile_cancel" href="javascript:;">取 消</a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </form><!--end #expectForm-->
                    </div><!--end .expectEdit-->
                    <input type="hidden" id="expectCityVal" th:value="${hopeJob.hopeCity}">
                    <input type="hidden" id="typeVal" th:value="${hopeJob.natureForJob}">
                    <input type="hidden" id="expectPositionVal" th:value="${hopeJob.positionDesired}">
                    <input type="hidden" id="expectSalaryVal" th:value="${hopeJob.monthSalary}">
                </div><!--end #expectJob-->
                <!---------------------------------------------------------------------------------------期望工作----------------------------------------------------------------->

                <div class="profile_box" id="workExperience">
                    <h2>工作经历 <span> （投递简历时必填）</span></h2>
                    <span class="c_add dn"></span>

                    <div th:if="${#lists.size(workExperList) > 0} " th:each="exper: ${workExperList}" class="basicShow"
                         id="show" style="margin-left: 20px;">
                        <div>
                            <span>公司名称：</span>
                            <span id="companyName_2" th:text=" ${exper.companyName}"></span>
                            <span>|</span>
                            <span>职位名称：</span>
                            <span id="position_2" th:text=" ${exper.position}"></span>
                            <br>
                            <span>起始时间：</span>
                            <span id="startYear" th:text=" ${exper.startYear} + '年'"></span>
                            <span>-</span>
                            <span id="startMonth" th:text=" ${exper.startMonth} + '月'"></span>
                            <span>|</span>
                            <span>结束时间：</span>
                            <span id="entYear" th:text=" ${exper.entYear} + '年'"></span>
                            <span>-</span>
                            <span id="endMonth" th:text=" ${exper.endMonth} + '月'"></span>

                            <!--<span id="caption" th:text=" ${show.workCaption}"></span>-->
                            <span id="updateExper" style="display: none;" class="" th:text="${exper.id}"></span>
                            <span id="updateExper_2">更新</span>
                            <span id="deleteExper" style="display: none;" class="" th:text="${exper.id}"></span>
                            <span id="deleteExper_2">-</span>
                        </div>

                    </div><!--end .experienceAdd-->
                    <span style="width: 120px; float: right; color: #0d9572;" th:if="${#lists.size(workExperList) > 0} "
                          id="goingAdd">添加工作经历</span>
                    <div id="showExper" class="experienceEdit dn">
                        <form class="experienceForm" onsubmit="return false;">
                            <table>
                                <tbody>
                                <tr>
                                    <span style="display: none;" id="id_2"></span>
                                    <td valign="top">
                                        <span class="redstar">*</span>
                                    </td>
                                    <td>
                                        <input type="text" placeholder="公司名称" id="companyName" name="companyName"
                                               class="companyName">
                                    </td>
                                    <td valign="top">
                                        <span class="redstar">*</span>
                                    </td>
                                    <td>
                                        <input type="text" placeholder="职位名称，如：产品经理" id="positionName"
                                               name="positionName"
                                               class="positionName">
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        <span class="redstar">*</span>
                                    </td>
                                    <td>
                                        <div class="fl">
                                            <input type="hidden" class="companyYearStart" value=""
                                                   name="companyYearStart" id="companyYearStart">
                                            <input type="button" value="开始年份" id="companyYearStart_2"
                                                   class="profile_select_139 profile_select_normal select_companyYearStart">
                                            <div class="box_companyYearStart boxUpDown boxUpDown_139 dn"
                                                 style="display: none;">
                                                <ul>
                                                    <li>2018</li>
                                                    <li>2017</li>
                                                    <li>2016</li>
                                                    <li>2015</li>
                                                    <li>2014</li>
                                                    <li>2013</li>
                                                    <li>2012</li>
                                                    <li>2011</li>
                                                    <li>2010</li>
                                                    <li>2009</li>
                                                    <li>2008</li>
                                                    <li>2007</li>
                                                    <li>2006</li>
                                                    <li>2005</li>
                                                    <li>2004</li>
                                                    <li>2003</li>
                                                    <li>2002</li>
                                                    <li>2001</li>
                                                    <li>2000</li>
                                                </ul>
                                            </div>
                                        </div>
                                        <div class="fl">
                                            <input type="hidden" class="companyMonthStart" id="companyMonthStart"
                                                   value=""
                                                   name="companyMonthStart">
                                            <input type="button" value="开始月份" id="companyMonthStart_2"
                                                   class="profile_select_139 profile_select_normal select_companyMonthStart">
                                            <div style="display: none;"
                                                 class="box_companyMonthStart boxUpDown boxUpDown_139 dn">
                                                <ul>
                                                    <li>01</li>
                                                    <li>02</li>
                                                    <li>03</li>
                                                    <li>04</li>
                                                    <li>05</li>
                                                    <li>06</li>
                                                    <li>07</li>
                                                    <li>08</li>
                                                    <li>09</li>
                                                    <li>10</li>
                                                    <li>11</li>
                                                    <li>12</li>
                                                </ul>
                                            </div>
                                        </div>
                                        <div class="clear"></div>
                                    </td>
                                    <td valign="top">
                                        <span class="redstar">*</span>
                                    </td>
                                    <td>
                                        <div class="fl">
                                            <input type="hidden" class="companyYearEnd" value="" id="companyYearEnd"
                                                   name="companyYearEnd">
                                            <input type="button" value="结束年份" id="companyYearEnd_2"
                                                   class="profile_select_139 profile_select_normal select_companyYearEnd">
                                            <div class="box_companyYearEnd  boxUpDown boxUpDown_139 dn"
                                                 style="display: none;">
                                                <ul>
                                                    <li>2018</li>
                                                    <li>2017</li>
                                                    <li>2016</li>
                                                    <li>2015</li>
                                                    <li>2014</li>
                                                    <li>2013</li>
                                                    <li>2012</li>
                                                    <li>2011</li>
                                                    <li>2010</li>
                                                    <li>2009</li>
                                                    <li>2008</li>
                                                    <li>2007</li>
                                                    <li>2006</li>
                                                    <li>2005</li>
                                                    <li>2004</li>
                                                    <li>2003</li>
                                                    <li>2002</li>
                                                    <li>2001</li>
                                                    <li>2000</li>

                                                </ul>
                                            </div>
                                        </div>
                                        <div class="fl">
                                            <input type="hidden" class="companyMonthEnd" value="" id="companyMonthEnd"
                                                   name="companyMonthEnd">
                                            <input type="button" value="结束月份" id="companyMonthEnd_2"
                                                   class="profile_select_139 profile_select_normal select_companyMonthEnd">
                                            <div style="display: none;"
                                                 class="box_companyMonthEnd boxUpDown boxUpDown_139 dn">
                                                <ul>
                                                    <li>01</li>
                                                    <li>02</li>
                                                    <li>03</li>
                                                    <li>04</li>
                                                    <li>05</li>
                                                    <li>06</li>
                                                    <li>07</li>
                                                    <li>08</li>
                                                    <li>09</li>
                                                    <li>10</li>
                                                    <li>11</li>
                                                    <li>12</li>
                                                </ul>
                                            </div>
                                        </div>
                                        <div class="clear"></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td colspan="3">
                                        <input type="submit" value="保 存" onclick="addWorkExper()"
                                               class="btn_profile_save">
                                        <a class="btn_profile_cancel" href="javascript:;">取 消</a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <input type="hidden" class="expId" value="">
                        </form><!--end .experienceForm-->
                    </div><!--end .experienxceEdit-->


                    <div th:if="${#lists.isEmpty(workExperList)}" class="experienceAdd pAdd">
                        工作经历最能体现自己的工作能力，<br>
                        且完善后才可投递简历哦！
                        <span>添加工作经历</span>
                    </div><!--end .experienceAdd-->
                </div><!--end #workExperience-->


                <div class="profile_box" id="educationalBackground">
                    <h2>教育背景<span>（投递简历时必填）</span></h2>
                    <span class="c_add dn"></span>
                    <div th:if="${#lists.size(education) > 0} " th:each="ed: ${education}" class="basicShow" id="show"
                         style="margin-left: 20px;">
                        <div>
                            <span>学校名称：</span>
                            <span id="schoolName_2" th:text=" ${ed.schoolName}"></span>
                            <span>|</span>
                            <span>学历：</span>
                            <span id="record_2" th:text=" ${ed.record}"></span>
                            <span>|</span>
                            <span>专业名称：</span>
                            <span id="major_2" th:text=" ${ed.major}"></span>
                            <br>
                            <span>开始年份：</span>
                            <span id="startYear_2" th:text=" ${ed.startYear}"></span>
                            <span>|</span>
                            <span>结束年份：</span>
                            <span id="endYear_2" th:text=" ${ed.endYear}"></span>

                            <span id="updateEdId" style="display: none;" class="" th:text="${ed.id}"></span>
                            <span id="updateEdId_2">更新</span>
                            <span id="delEdId" style="display: none;" class="" th:text="${ed.id}"></span>
                            <span id="delEdId_2">-</span>
                        </div>

                    </div><!--end .experienceAdd-->
                    <span style="width: 120px; float: right; color: #0d9572;" th:if="${#lists.size(education) > 0} "
                          id="addEd">添加教育经历</span>
                    <div id="showEducation" class="educationalEdit dn">
                        <form class="educationalForm" onsubmit="return false;">
                            <table>
                                <tbody>
                                <tr>
                                    <span id="edId" style="display: none;"></span>
                                    <td valign="top">
                                        <span class="redstar">*</span>
                                    </td>
                                    <td>
                                        <input type="text" placeholder="学校名称" id="schoolName" name="schoolName"
                                               class="schoolName">
                                    </td>
                                    <td valign="top">
                                        <span class="redstar">*</span>
                                    </td>
                                    <td>
                                        <input type="hidden" class="degree" id="degree" value="" name="degree">
                                        <input type="button" value="学历"
                                               class="profile_select_287 profile_select_normal select_degree">
                                        <div class="box_degree boxUpDown boxUpDown_287 dn" style="display: none;">
                                            <ul>
                                                <li>大专</li>
                                                <li>本科</li>
                                                <li>硕士</li>
                                                <li>博士</li>
                                                <li>其他</li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        <span class="redstar">*</span>
                                    </td>
                                    <td>
                                        <input type="text" placeholder="专业名称" id="professionalName"
                                               name="professionalName"
                                               class="professionalName">
                                    </td>
                                    <td valign="top">
                                        <span class="redstar">*</span>
                                    </td>
                                    <td>
                                        <div class="fl">
                                            <input type="hidden" class="schoolYearStart" id="schoolYearStart" value=""
                                                   name="schoolYearStart">
                                            <input type="button" value="开始年份"
                                                   class="profile_select_139 profile_select_normal select_schoolYearStart">
                                            <div class="box_schoolYearStart boxUpDown boxUpDown_139 dn"
                                                 style="display: none;">
                                                <ul>
                                                    <li>2019</li>
                                                    <li>2018</li>
                                                    <li>2017</li>
                                                    <li>2016</li>
                                                    <li>2015</li>
                                                    <li>2014</li>
                                                    <li>2013</li>
                                                    <li>2012</li>
                                                    <li>2011</li>
                                                    <li>2010</li>
                                                    <li>2009</li>
                                                    <li>2008</li>
                                                    <li>2007</li>
                                                    <li>2006</li>
                                                    <li>2005</li>
                                                    <li>2004</li>
                                                    <li>2003</li>
                                                    <li>2002</li>
                                                    <li>2001</li>
                                                    <li>2000</li>

                                                </ul>
                                            </div>
                                        </div>
                                        <div class="fl">
                                            <input type="hidden" class="schoolYearEnd" id="schoolYearEnd" value=""
                                                   name="schoolYearEnd">
                                            <input type="button" value="结束年份"
                                                   class="profile_select_139 profile_select_normal select_schoolYearEnd">
                                            <div class="box_schoolYearEnd  boxUpDown boxUpDown_139 dn"
                                                 style="display: none;">
                                                <ul>
                                                    <li>2019</li>
                                                    <li>2018</li>
                                                    <li>2017</li>
                                                    <li>2016</li>
                                                    <li>2015</li>
                                                    <li>2014</li>
                                                    <li>2013</li>
                                                    <li>2012</li>
                                                    <li>2011</li>
                                                    <li>2010</li>
                                                    <li>2009</li>
                                                    <li>2008</li>
                                                    <li>2007</li>
                                                    <li>2006</li>
                                                    <li>2005</li>
                                                    <li>2004</li>
                                                    <li>2003</li>
                                                    <li>2002</li>
                                                    <li>2001</li>
                                                    <li>2000</li>

                                                </ul>
                                            </div>
                                        </div>
                                        <div class="clear"></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td colspan="3">
                                        <input type="submit" value="保 存" onclick="updateEducation()"
                                               class="btn_profile_save">
                                        <a class="btn_profile_cancel" href="javascript:;">取 消</a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <input type="hidden" class="eduId" value="">
                        </form><!--end .educationalForm-->
                    </div><!--end .educationalEdit-->
                    <div th:if="${#lists.isEmpty(education)}" class="educationalAdd pAdd">
                        教育背景可以充分体现你的学习和专业能力，<br>
                        且完善后才可投递简历哦！
                        <span>添加教育经历</span>
                    </div><!--end .educationalAdd-->
                </div><!--end #educationalBackground-->


                <div class="profile_box" id="selfDescription">
                    <h2>自我描述</h2>
                    <span class="c_edit dn"></span>
                    <div   class="basicShow"  style="margin-left: 20px;">
                        <div th:unless="${#strings.isEmpty(resume.myDesc)}">
                            <span id="oldDesc" th:text="${resume.myDesc}"></span>
                            <span id="updateMyDesc" style="color:#019875; cursor: pointer; float: right;">更新</span>
                            <span id="deleteMyDesc" style="color:red; cursor: pointer; float: right;">删除</span>
                        </div>

                    </div><!--end .experienceAdd-->
                    <div class="descriptionEdit dn" id="myDescription">
                        <form class="descriptionForm" onsubmit="return false;">
                            <table>
                                <tbody>
                                <tr>

                                    <td colspan="2">
                                        <textarea class="selfDescription s_textarea" id="my" name="selfDescription"
                                                  placeholder=""></textarea>
                                        <div class="word_count">你还可以输入 <span>500</span> 字</div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <input type="submit" value="保 存" onclick="updateMyDesc();" class="btn_profile_save">
                                        <a class="btn_profile_cancel" href="javascript:;">取 消</a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </form><!--end .descriptionForm-->
                    </div><!--end .descriptionEdit-->
                    <div th:if="${#strings.isEmpty(resume.myDesc)}" class="descriptionAdd pAdd">
                        描述你的性格、爱好以及吸引人的经历等，<br>
                        让企业了解多元化的你！
                        <span>添加自我描述</span>
                    </div><!--end .descriptionAdd-->
                </div><!--end #selfDescription-->


                <div class="profile_box" id="worksShow">
                    <h2>作品展示</h2>
                    <span class="c_add dn"></span>
                    <div th:if="${workShow != null}" th:each="show: ${workShow}" class="basicShow" id="show"
                         style="margin-left: 20px;">
                        <div>

                            <a id="url" th:text=" ${show.workUrl}"></a> <br>
                            <span id="caption" th:text=" ${show.workCaption}"></span>
                            <span id="updateShow" style="display: none;" class="" th:text="${show.id}"></span>
                            <span id="updateShow_2" style="color:#019875; cursor: pointer; float: right;">更新</span>
                            <span id="deleteShow" style="display: none;" class="" th:text="${show.id}"></span>
                            <span id="deleteShow_2" style="color:red; cursor: pointer; float: right;">删除</span>
                        </div>

                    </div><!--end .experienceAdd-->
                    <div id="showElement" class="workEdit dn">
                        <form class="workForm" onsubmit="return false;">
                            <table>
                                <tbody>
                                <tr>
                                    <span id="workShowId" style="display: none;"></span>
                                    <td>
                                        <input type="text" placeholder="请输入作品链接" name="workLink" id="workLink"
                                               class="workLink">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                <textarea maxlength="100" id="workDescription"
                          class="workDescription s_textarea"
                          name="workDescription" placeholder="请输入说明文字"></textarea>
                                        <div class="word_count">你还可以输入 <span>100</span> 字</div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="submit" value="保 存" onclick="addProduct()"
                                               class="btn_profile_save">
                                        <a class="btn_profile_cancel" href="javascript:;">取 消</a>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <input type="hidden" class="showId" value="">
                        </form><!--end .workForm-->
                    </div><!--end .workEdit-->
                    <div th:if="${workShow != null}" style="width: 120px;float: right;color: #0d9572;" class="workAdd">

                        <span>添加作品展示</span>
                    </div><!--end .workAdd-->
                    <div th:if="${#lists.isEmpty(workShow)}" class="workAdd pAdd">
                        好作品会说话！<br>
                        快来秀出你的作品打动企业吧！
                        <span>添加作品展示</span>
                    </div><!--end .workAdd-->
                </div><!--end #worksShow-->
                <input type="hidden" id="resumeId" value="268472">
            </div><!--end .content_l-->
            <div class="content_r">
                <div class="mycenterR" id="myInfo">
                    <h2>我的信息</h2>
                    <a target="_blank" href="collections.html">我收藏的职位</a>
                    <br>
                    <a target="_blank" href="subscribe.html">我订阅的职位</a>
                </div><!--end #myInfo-->

                <div class="mycenterR" id="myResume">
                    <h2>我的附件简历
                        <a title="上传附件简历" href="#uploadFile" class="inline cboxElement">上传简历</a>
                    </h2>
                    <div class="resumeUploadDiv">
                        暂无附件简历
                    </div>
                </div><!--end #myResume-->

                <div class="mycenterR" id="resumeSet">
                    <h2>投递简历设置 <span>修改设置</span></h2>
                    <!-- -1 (0=附件， 1=在线， 其他=未设置) -->
                    <div class="noSet set0 dn">默认使用<span>附件简历</span>进行投递</div>
                    <div class="noSet set1 dn">默认使用<span>在线简历</span>进行投递</div>
                    <div class="noSet">暂未设置默认投递简历</div>
                    <input type="hidden" class="defaultResume" value="-1">
                    <form class="dn" id="resumeSetForm">
                        <label><input type="radio" value="1" class="resume1"
                                      name="resume">默认使用<span>在线简历</span>进行投递</label>
                        <label><input type="radio" value="0" class="resume0"
                                      name="resume">默认使用<span>附件简历</span>进行投递</label>
                        <span class="setTip error"></span>
                        <div class="resumeTip">设置后投递简历时将不再提醒</div>
                        <input type="submit" value="保 存" class="btn_profile_save">
                        <a class="btn_profile_cancel" href="javascript:;">取 消</a>
                    </form>
                </div><!--end #resumeSet-->

                <div class="mycenterR" id="myShare">
                    <h2>当前每日投递量：10个</h2>
                    <a target="_blank" href="h/share/invite.html">邀请好友，提升投递量</a>
                </div><!--end #myShare-->


                <div class="greybg qrcode mt20">
                    <img width="242" height="242" alt="拉勾微信公众号二维码" src="/images/qr_resume.png">
                    <span class="c7">微信扫一扫，轻松找工作</span>
                </div>
            </div><!--end .content_r-->
        </div>

        <input type="hidden" id="userid" name="userid" value="314873">

        <!-------------------------------------弹窗lightbox ----------------------------------------->
        <div style="display:none;">
            <!-- 上传简历 -->
            <div class="popup" id="uploadFile">
                <table width="100%">
                    <tbody>
                    <tr>
                        <td align="center">
                            <form>
                                <a class="btn_addPic" href="javascript:void(0);">
                                    <span>选择上传文件</span>
                                    <input type="file"
                                           onchange="file_check(this,'h/nearBy/updateMyResume.json','resumeUpload')"
                                           class="filePrew" id="resumeUpload" name="newResume" size="3"
                                           title="支持word、pdf、ppt、txt、wps格式文件，大小不超过10M" tabindex="3">
                                </a>
                            </form>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">支持word、pdf、ppt、txt、wps格式文件<br>文件大小需小于10M</td>
                    </tr>
                    <tr>
                        <td align="left" style="color:#dd4a38; padding-top:10px;">注：若从其它网站下载的word简历，请将文件另存为.docx格式后上传
                        </td>
                    </tr>
                    <tr>
                        <td align="center"><img width="55" height="16" alt="loading" style="visibility: hidden;"
                                                id="loadingImg" src="/images/loading.gif"></td>
                    </tr>
                    </tbody>
                </table>
            </div><!--/#uploadFile-->

            <!-- 简历上传成功 -->
            <div class="popup" id="uploadFileSuccess">
                <h4>简历上传成功！</h4>
                <table width="100%">
                    <tbody>
                    <tr>
                        <td align="center"><p>你可以将简历投给你中意的公司了。</p></td>
                    </tr>
                    <tr>
                        <td align="center"><a class="btn_s" href="javascript:;">确&nbsp;定</a></td>
                    </tr>
                    </tbody>
                </table>
            </div><!--/#uploadFileSuccess-->

            <!-- 没有简历请上传 -->
            <div class="popup" id="deliverResumesNo">
                <table width="100%">
                    <tbody>
                    <tr>
                        <td align="center"><p class="font_16">你在拉勾还没有简历，请先上传一份</p></td>
                    </tr>
                    <tr>
                        <td align="center">
                            <form>
                                <a class="btn_addPic" href="javascript:void(0);">
                                    <span>选择上传文件</span>
                                    <input type="file"
                                           onchange="file_check(this,'h/nearBy/updateMyResume.json','resumeUpload1')"
                                           class="filePrew" id="resumeUpload1" name="newResume" size="3"
                                           title="支持word、pdf、ppt、txt、wps格式文件，大小不超过10M">
                                </a>
                            </form>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">支持word、pdf、ppt、txt、wps格式文件，大小不超过10M</td>
                    </tr>
                    </tbody>
                </table>
            </div><!--/#deliverResumesNo-->

            <!-- 上传附件简历操作说明-重新上传 -->
            <div class="popup" id="fileResumeUpload">
                <table width="100%">
                    <tbody>
                    <tr>
                        <td>
                            <div class="f18 mb10">请上传标准格式的word简历</div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="f16">
                                操作说明：<br>
                                打开需要上传的文件 - 点击文件另存为 - 选择.docx - 保存
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <a title="上传附件简历" href="#uploadFile" class="inline btn cboxElement">重新上传</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div><!--/#fileResumeUpload-->

            <!-- 上传附件简历操作说明-重新上传 -->
            <div class="popup" id="fileResumeUploadSize">
                <table width="100%">
                    <tbody>
                    <tr>
                        <td>
                            <div class="f18 mb10">上传文件大小超出限制</div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="f16">
                                提示：<br>
                                单个附件不能超过10M，请重新选择附件简历！
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <a title="上传附件简历" href="#uploadFile" class="inline btn cboxElement">重新上传</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div><!--/#deliverResumeConfirm-->

        </div>
        <!------------------------------------- end ----------------------------------------->

        <script src="/js/Chart.min.js" type="text/javascript"></script>
        <script src="/js/profile.min.js" type="text/javascript"></script>
        <!-- <div id="profileOverlay"></div> -->
        <div class="" id="qr_cloud_resume" style="display: none;">
            <div class="cloud">
                <img width="134" height="134" src="">
                <a class="close" href="javascript:;"></a>
            </div>
        </div>
        <div class="clear"></div>

        <a rel="nofollow" title="回到顶部" id="backtop" style="display: none;"></a>
    </div><!-- end #container -->
</div><!-- end #body -->
<div id="footer">
    <div class="wrapper">
        <a rel="nofollow" target="_blank" href="h/about.html">联系我们</a>
        <a target="_blank" href="h/af/zhaopin.html">互联网公司导航</a>
        <a rel="nofollow" target="_blank" href="http://e.weibo.com/lagou720">拉勾微博</a>
        <a rel="nofollow" href="javascript:void(0)" class="footer_qr">拉勾微信<i></i></a>
        <div class="copyright">&copy;2013-2014 Lagou <a
                href="http://www.miitbeian.gov.cn/state/outPortal/loginPortal.action"
                target="_blank">京ICP备14023790号-2</a></div>
    </div>
</div>

<script src="/js/core.min.js" type="text/javascript"></script>
<script src="/js/popup.min.js" type="text/javascript"></script>

<script type="text/javascript">
    var resumeId = $("#current_email").text();
// alert(resumeId)
    // 更新简历名称
    function updateName() {
        var newResumeName = $("#newResumeName").val();
        // alert(newResumeName);
        $.ajax({
            url: '/resume/updateResumeName.html?newResumeName=' + newResumeName,
            success: function (result) {
                if (result.code == 2) {
                    window.location.href = result.data;
                } else {
                    $("#errorMsg").val(result.msg).show();
                    return false;
                }
            }
        })
    }

    // 更新基本信息
    function updateBaseInfo() {
        var name = $("#name").val();
        // alert("姓名" + name);
        var gender = $("#gender").find(".current").find("input").val();
        // alert("性别" + gender);
        var topDegree = $("#topDegree").val()
        // alert("最高学历" + topDegree);
        var workyear = $("#workyear").val();
        // alert("工作年限" + workyear);
        var tel = $("#tel").val();
        // alert("电话" + tel);
        var email = $("#email").val();
        // alert("邮箱" + email);
        var select_currentState = $("#select_currentState").val();
        // alert("目前状态" + select_currentState);
        $.ajax({
            url: '/resume/updateBaseInfo.html',
            type: 'POST',
            dateType: 'JSON',
            data: {
                id: resumeId,
                userName: name,
                userGender: gender,
                eduBack: topDegree,
                userPhone: tel,
                projectExpe: workyear,
                email: email,
                nowStatus: select_currentState
            },
            success: function (result) {
                if (result.code == 2) {
                    window.location.href = result.data;
                } else {
                    return false;
                }
            }
        })
    }

    // 添加期望工作职位
    function addHopeJob() {
        // alert(email);
        // 期望城市
        var hopeCity = $("#select_expectCity").val();
        // alert("期望城市" + hope_City);
        // 工作性质
        var natureForJob = $("#gongzuoxingzhi ").find(".current").find("input").val();
        // alert("工作性质" + natureForJob);
        // 期望职位
        var expectPosition = $("#expectPosition").val();
        // alert("期望职位" + expectPosition);
        // 期望工资
        var hopeSalary = $("#select_expectSalary").val();
        // alert("期望工资" + hopeSalary);
        $.ajax({
            url: '/resume/hopeJob.html',
            data: {
                resumeId: resumeId,
                hopeCity: hopeCity,
                natureForJob: natureForJob,
                positionDesired: expectPosition,
                monthSalary: hopeSalary
            },
            dateType: "JSON",
            type: 'POST',
            success: function (result) {
                if (result.code == 2) {
                    window.location.href = result.data;
                } else {
                    return false;
                }
            }
        })

    }

    // 更新自我描述
    function updateMyDesc() {
        var my = $("#my").val();
        // alert(my)
        $.ajax({
            url: '/resume/updateMyDescription.html',
            type: 'POST',
            dataType: 'JSON',
            data: {
                id: resumeId,
                myDesc: my
            },
            success: function (result) {
                if (result.code == 2) {
                    window.location.href = result.data;
                } else {
                    return false;
                }
            }
        })
    }


    // 添加作品
    function addProduct() {
        var workShowId = $("#workShowId").html();
        var workLink = $("#workLink").val();
        // alert("网页链接" + workLink);
        var workDescription = $("#workDescription").val();
        // alert("描述" + workDescription)
        $.ajax({
            url: '/resume/addWorkShow.html',
            dataType: "JSON",
            type: 'POST',
            data: {
                id: workShowId,
                resumeId: resumeId,
                workUrl: workLink,
                workCaption: workDescription
            },
            success: function (result) {
                if (result.code == 2) {
                    window.location.href = result.data;
                } else {
                    return false;
                }
            }
        })
    }

    // 添加工作经历
    function addWorkExper() {
        var companyName = $("#companyName").val();
        // alert("companyName" + companyName);
        var positionName = $("#positionName").val();
        // alert("positionName" + positionName);
        var companyYearStart = $("#companyYearStart").val();
        // alert("companyYearStart" + companyYearStart);
        var companyMonthStart = $("#companyMonthStart").val();
        // alert("companyMonthStart" + companyMonthStart);
        var companyYearEnd = $("#companyYearEnd").val();
        // alert("companyYearEnd" + companyYearEnd);
        var companyMonthEnd = $("#companyMonthEnd").val();
        // alert("companyMonthEnd" + companyMonthEnd);
        var id = $("#id_2").html();
        $.ajax({
            url: '/resume/addWorkExper.html',
            dataType: 'JSON',
            type: 'POST',
            data: {
                id: id,
                resumeId: resumeId,
                companyName: companyName,
                position: positionName,
                startYear: companyYearStart,
                startMonth: companyMonthStart,
                entYear: companyYearEnd,
                endMonth: companyMonthEnd,

            },
            success: function (result) {
                if (result.code == 2) {
                    window.location.href = result.data;
                } else {
                    return false;
                }
            }
        })
    }

    // 添加更新教育背景
    function updateEducation() {

        var professionalName = $("#professionalName").val();
        // alert("professionalName" + professionalName)
        var degree = $("#degree").val();
        // alert("degree" + degree)
        var schoolName = $("#schoolName").val();
        // alert("schoolName" + schoolName)
        var schoolYearStart = $("#schoolYearStart").val();
        // alert("schoolYearStart" + schoolYearStart)
        var schoolYearEnd = $("#schoolYearEnd").val();
        // alert("schoolYearEnd" + schoolYearEnd)
        var id = $("#edId").html();
        // alert(id);

        $.ajax({
            url: '/resume/addEducation.html',
            type: 'POST',
            dataType: 'JSON',
            data: {
                id: id,
                resumeId: resumeId,
                schoolName: schoolName,
                major: professionalName,
                record: degree,
                startYear: schoolYearStart,
                endYear: schoolYearEnd
            },
            success: function (result) {
                if (result.code == 2) {
                    window.location.href = result.data;
                } else {
                    return false;
                }
            }

        })

    }

    $(function () {
        // 更新自我描述
        $("#updateMyDesc").click(function () {
          $("#myDescription").removeClass("dn");
          $("#my").text($("#oldDesc").html());
        });
        // 删除自我描述
        $("#deleteMyDesc").click(function () {
            if (!confirm("确定删除？")) {
                return false;
            }
            $.ajax({
                url:'/resume/deleteMyDesc.html?resumeId=' + resumeId,
                success:function (result) {
                    if (result.code == 2) {
                        window.location.href = result.data;
                    } else {
                        alert("删除失败");
                        return false;
                    }
                }
            })
        })

        // 更新作品展示
        $("#worksShow").on('click', '#updateShow_2', function () {
            var url = $(this).prevAll("#url").html();
            // alert("url" + url);
            var caption = $(this).prevAll("#caption").html();
            // alert("caption" + caption);
            var resumeId = $(this).prevAll("#updateShow").text();
            // alert("resumeId" + resumeId);
            $("#showElement").removeClass("dn");
            $("#workLink").val(url);
            $("#workDescription").html(caption);
            $("#workShowId").html(resumeId)
        });
        // 删除作品
        $("#worksShow").on('click', '#deleteShow_2', function () {
            var resumeId = $(this).prevAll("#updateShow").text();
            // alert("resumeId" + resumeId);
            if (!confirm("确定删除？")) {
                return false;
            }
            $.ajax({
                url: '/resume/deleteWorkShow.html?resumeId=' + resumeId,
                success: function (result) {
                    if (result.code == 2) {
                        window.location.href = result.data;
                    } else {
                        alert("删除失败");
                        return false;
                    }
                }
            })
        });

        // 更新工作经历
        $("#workExperience").on('click', "#updateExper_2", function () {
            $("#showExper").removeClass("dn");
            var companyName = $(this).prevAll("#companyName_2").html();
            $("#companyName").val(companyName);
            var position_2 = $(this).prevAll("#position_2").html();
            $("#positionName").val(position_2);
            // var startYear = $(this).prevAll("#startYear").html();
            // $("#companyYearStart_2").val(startYear);
            // var startMonth = $(this).prevAll("#startMonth").html();
            // $("#companyMonthStart_2").val(startMonth);
            // var entYear = $(this).prevAll("#entYear").html();
            // $("#companyYearEnd_2").val(entYear);
            // var endMonth = $(this).prevAll("#endMonth").html();
            // $("#companyMonthEnd_2").val(endMonth);
            var workExperId = $(this).prevAll("#updateExper").html();
            $("#id_2").html(workExperId);
        });

        // 删除工作经历
        $("#workExperience").on('click', "#deleteExper_2", function () {
            var workExperId = $(this).prevAll("#updateExper").html();
            if (!confirm("确定删除？")) {
                return false;
            }
            $.ajax({
                url: '/resume/deleteWorkExper.html?workExperId=' + workExperId,
                success: function (result) {
                    if (result.code == 2) {
                        window.location.href = result.data;
                    } else {
                        alert("删除失败");
                        return false;
                    }
                }
            })

        });

        // 点击显示添加工作经历界面
        $("#goingAdd").click(function () {
            $("#showExper").removeClass("dn");
        })

        // 更新教育背景
        $("#educationalBackground").on('click', '#updateEdId_2', function () {

            $("#showEducation").removeClass("dn");
            var schoolName = $(this).prevAll("#schoolName_2").html();
            $("#schoolName").val(schoolName);

            var record_2 = $(this).prevAll("#record_2").html();
            $("#degree").val(record_2);

            var major_2 = $(this).prevAll("#major_2").html();
            $("#professionalName").val(major_2);
            var startYear_2 = $(this).prevAll("#startYear_2").html();
            $("#schoolYearStart").val(startYear_2);
            var endYear_2 = $(this).prevAll("#endYear_2").html();
            $("#schoolYearEnd").val(endYear_2);
            var educationId = $(this).prevAll("#updateEdId").html();
            $("#edId").html(educationId);

        });


        // 点击显示添加工作经历界面
        $("#addEd").click(function () {
            $("#showEducation").removeClass("dn");
        })


        // 删除教育背景
        $("#educationalBackground").on('click', '#delEdId_2', function () {
            var educationId = $(this).prevAll("#delEdId").html();
            if (!confirm("确定删除？")) {
                return false;
            }
            $.ajax({
                url: '/resume/deleteEducation.html?educationId=' + educationId,
                success: function (result) {
                    if (result.code == 2) {
                        window.location.href = result.data;
                    } else {
                        alert("删除失败");
                        return false;
                    }
                }
            })
        });
    });


</script>


</body>
</html>